package net.net23.sysdent.shared.jto;

import java.util.Date;
import java.util.Set;

public class Link extends WebEntity {

	private Long id;

	private String name;

	private String link;

	private Long user;

	private Date creationDate;

	private String shortCreationDate;

	private Set<String> keyWords;

	public Link() {
		super();
	}

	public Link(String link, Long user) {
		this(link, link, user);
	}

	public Link(String name, String link, Long user) {
		super();
		setName(name);
		setLink(link);
		setUser(user);
		setCreationDate(new Date());
	}

	public Long getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {

		this.link = link;
	}

	public Long getUser() {
		return user;
	}

	public void setUser(Long user) {
		this.user = user;
	}

	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}

	public Date getCreationDate() {
		return creationDate;
	}

	public void setShortCreationDate(String shortCreationDate) {
		this.shortCreationDate = shortCreationDate;
	}

	public String getShortCreationDate() {
		return shortCreationDate;
	}

	public void setKeyWords(Set<String> keyWords) {
		this.keyWords = keyWords;
	}

	public Set<String> getKeyWords() {
		return keyWords;
	}

	public void setId(Long id) {
		this.id = id;
	}
}
